package com.controller.yxy;
import com.service.yxyService.GetDataService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * 收费管理→3费用催缴
 */
@Controller
@RequestMapping("/YXYpage/")
public class ChargeAallController {
    @Resource
    private GetDataService getDataService;

    /**
     * 加载总数居
     * @return
     */
    @RequestMapping(value = "getallfeiyongcuijiao",method = RequestMethod.GET)
    @ResponseBody
    public Object getallfeiyongcuijiao(){
        return getDataService.getallfeiyongcuijiao();
    }


    /**
     * 发送短信
     * @return
     */
    @RequestMapping(value = "fasongduanxing",method = RequestMethod.POST)
    @ResponseBody
    public Object fasongduanxing(HttpServletRequest re){
     String [] str =  re.getParameterValues("arr[]");
        System.out.println(str.toString());
    return getDataService.fasongduanxing(str);

    }
}